home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: FW_CString
- Sent: 8/20/96 10:38 AM
- Received: 8/20/96 10:51 AM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >I am working on a derivative of ODFContainer, but I want to be able to
- >have a list of all the embedded parts in my container as a list akin to
- >the Finder's view by name, kind...etc (small icons and text descriptors).
- >How, in ODF, do I get the small icon and the small icon mask (I need to
- >highlight) from the embedded part (through the CProxy object somehow?)?
- >
- There is no standard API in OpenDoc to access an embedded part icon
- (icons are not x-platform). You don't really need the embedded part icon
- anyway, just change the view type to icon and use the OpenDoc highlight
- mechanism. ODF doesn't have any API to get to the embedded part icon but
- I think there are some OpenDoc utilities to do that. You can use the
- FW_MProxy::GetEmbeddedPartName to get the name.
-
- >Also, is there an ODF call to get the selection color from the OS. I know
- >I can go straight to the Toolbox, but I am trying to keep my part as
- >platform neutral, and if there is an ODF call for getting colors, and
- >other stuff I'd like to use it.
- >
- By the selection color I assume you mean the highlight color. In ODF 1 If
- you use the FW_kHilite transfer mode with your ink and black for the
- foreground color you will get the system highlight color. We changed that
- in ODF 2: FW_kHilite always uses the ink foreground color,
- FW_kSystemHilite ignores the ink foreground color and uses instead the
- system hightlight color.
-
- >-Scott Adler
-
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-
-